package com.punegtug.opensocial.gifts.model;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * Presents a Gift. A Gift has a name.
 * 
 * @author rohitghatol
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Gift {
	@PrimaryKey 
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String key;
	
	@Persistent
	private String name = null;

	


	/**
	 * @return the encodedKey
	 */
	public String getKey() {
		return key;
	}

	/**
	 * @param name
	 */
	public Gift(String name) {
		super();
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
}
